package com.example.flowermall.service;

import com.example.flowermall.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoman
 * @since 2023-06-15
 */
public interface ICategoryService extends IService<Category> {

    List<Category> selectCategory(String categoryName);

    void insertCategory(Category category);

    Category getCategoryById(Integer id);

    void updateCategory(Category category);

    void deleteCategory(Integer id);

    List<Category> selectByParentId(Integer id);


    List<Category> getAllCategory();
}
